package system.service;

import system.httpModel.User;
import common.httpModel.EasyuiDataGrid;
import common.httpModel.EasyuiDataGridJson;
import common.service.BaseService;

public interface UserService extends BaseService {

	public User login(User user);

	public EasyuiDataGridJson datagrid(EasyuiDataGrid dg, User user);
	
	/**
	 * 删除用户
	 * @param ids
	 */
	public void del(String ids);
	
	/**
	 * 添 加用户 
	 * @param user
	 * @return
	 */
	public User add(User user);

	/**
	 * 编辑用户
	 * @param user
	 * @return
	 */
	public User edit(User user);
	
	/**
	 *编辑用户信息 
	 * @param user
	 * @return
	 */
	public User editUserInfo(User user);

	/**
	 * 获取用户信息
	 * @param user
	 * @return
	 */
	public User getUserInfo(User user);

	/**
	 * 批量编辑用户角色
	 * @param userIds
	 * @param roleId
	 */
	public void editUsersRole(String userIds, String roleId);

}
